import socket
from config import *

server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
server_socket.bind((SERVER_IP,SERVER_PORT))
server_socket.listen(128)
while True:
    client_socket,client_addr = server_socket.accept()
    print(client_addr)
    print(client_socket.recv(1024).decode('utf-8'))
    str = '服务端已接收到连接'.encode('utf-8')
    client_socket.send(str)

